<template>
  <el-row class="ic-row">
    <el-col class="ic-col" v-for="(o, index) in 20" :key="o">
      <el-card class="card-box" shadow="hover">
        <img src="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"
             class="image">
        <div style="padding: 14px;">
          <span>好吃的汉堡</span>
          <div class="bottom clearfix">
            <time class="time">{{ currentDate }}</time>
            <el-button type="text" class="button">操作按钮</el-button>
          </div>
        </div>
      </el-card>
    </el-col>
  </el-row>
</template>
<style>
.ic-row {
  display: flex;
  margin-left: -15px;
  margin-right: -15px;
  position: relative;
}

.ic-col {
  display: block;
  flex: 0 0 50%;
  max-width: 50%;
}

.card-box {
  display: flex;
  height: 220px;

  border: 1px solid #fff;
  margin-bottom: 30px;
  border-radius: 4px;
  min-height: 36px;
}

.time {
  font-size: 13px;
  color: #999;
}

.bottom {
  margin-top: 13px;
  line-height: 12px;
}

.button {
  padding: 0;
  float: right;
}

.image {
  width: 200px;
  height: 100%;
  display: block;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}

.clearfix:after {
  clear: both
}
</style>

<script>
export default {
  data() {
    return {
      currentDate: new Date()
    };
  }
}
</script>
